const express = require('express');
const router = express.Router();
const expressJoi = require('@escook/express-joi');
const { add_consumption_schema, get_consumptions_schema } = require('../schema/comsumption')
const consumption_handle = require('../router_handler/consumption');

router.post('/add', expressJoi(add_consumption_schema), consumption_handle.addConsumption);
router.get('/list', expressJoi(get_consumptions_schema), consumption_handle.getConsumptions);

module.exports = router;